package com.liuwei.classy.model;

public class CommResult<T> {
    public boolean success;
    public String errorCode;
    public String desc;
    public T data;

    public CommResult() {
    }

    public CommResult(boolean success, String errorCode, String desc) {
        this.success = success;
        this.desc = desc;
        this.errorCode = errorCode;
    }

    public boolean getSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public Object getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
